package com.bwie.controller;

import com.bwie.pojo.Result;
import com.bwie.pojo.po.Shen;
import com.bwie.service.ShenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/shen")
public class ShenController {
    @Autowired
    private ShenService shenService;

    @ResponseBody
    @PostMapping("addShen")
    public Result addShen(@RequestBody Shen shen){
        shenService.addShen(shen);
        return Result.success();
    }
}
